package command

import "github.com/spf13/cobra"

var (
	BackupCmd = &cobra.Command{
		Use:   "backup",
		Short: "Backup database",
		Run: func(cmd *cobra.Command, args []string) {
			backup()
		},
	}
	backupFileName string
	isCompress     bool
	isEncrypt      bool
	encryptKey     string
)

func init() {
	BackupCmd.Flags().StringVarP(&backupFileName, "file", "f", "backup.sql", "Backup file name")
	BackupCmd.Flags().BoolVarP(&isCompress, "compress", "c", false, "Backup file is compress")
	BackupCmd.Flags().BoolVarP(&isEncrypt, "encrypt", "e", false, "Backup file is encrypt")
	BackupCmd.Flags().StringVarP(&encryptKey, "key", "k", "", "Encrypt key")
}

func backup() {

}
